package com.designpatterns.abstractfactory.concretefactory;

import com.designpatterns.abstractfactory.IAnimalFactory;
import com.designpatterns.abstractfactory.abstractproduct.ICat;
import com.designpatterns.abstractfactory.abstractproduct.IDog;
import com.designpatterns.abstractfactory.concreteproduct.BlackCat;
import com.designpatterns.abstractfactory.concreteproduct.BlackDog;

/**
 * BlackAnimal Factory Implements IAnimalFactory
 *
 * @author Haiqi.Wang
 * @since 2013-5-30下午1:53:52
 */
public class BlackAnimalFactory implements IAnimalFactory {

	@Override
	public ICat createCat() {
		return new BlackCat();
	}

	@Override
	public IDog createDog() {
		return new BlackDog();
	}

}
